package com.github.ihsg.demo.ui

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.github.ihsg.demo.databinding.ActivityMainBinding
import com.github.ihsg.demo.ui.def.DefaultStyleActivity
import com.github.ihsg.demo.ui.simple.SimpleStyleActivity
import com.github.ihsg.demo.ui.whole.PinActivity
import com.github.ihsg.demo.ui.whole.WholeStyleActivity
import com.zzh.lib.locker.HLocker


class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val bind = ActivityMainBinding.inflate(layoutInflater)
        setContentView(bind.root)

        bind.btnDefault.setOnClickListener { DefaultStyleActivity.startAction(this@MainActivity) }
        bind.btnSimple.setOnClickListener { SimpleStyleActivity.startAction(this@MainActivity) }
        bind.btnWhole.setOnClickListener { WholeStyleActivity.startAction(this@MainActivity) }
        bind.btnAuth.setOnClickListener { HLocker.isBiometric() }
        bind.btnKey.setOnClickListener {
            PinActivity.startAction(this@MainActivity)
        }
        bind.btnKeyboard.setOnClickListener {
            startActivity(
                Intent(
                    this,
                    com.github.ihsg.demo.keyboard.MainActivity::class.java
                )
            )
        }
    }
}